//


import UIKit
import SnapKit

class WP_DetailLabelTableViewCell: UITableViewCell {
    
    var titleLabel:UILabel!
    var contentLabel:UILabel!
    
    
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: .default, reuseIdentifier: reuseIdentifier)
        
        setUI()
    }
    
    func setUI()  {
       
        titleLabel = UILabel()
        titleLabel.textColor = UIColor.black
        titleLabel.font = FontPFRegular(17)
        titleLabel.text = ""
        self.contentView.addSubview(titleLabel)
        titleLabel.snp.makeConstraints { (make) in
            make.top.equalToSuperview().offset(kRatioHeight(20))
            make.left.equalToSuperview().offset(kRatioWidth(12))
            make.height.equalTo(kRatioHeight(20))
        }
        
        contentLabel = UILabel()
        contentLabel.textColor = UIColor.gray
        contentLabel.font = FontPFRegular(16)
        contentLabel.numberOfLines = 0
        contentLabel.text = ""
        self.contentView.addSubview(contentLabel)
        contentLabel.snp.makeConstraints { (make) in
            make.top.equalTo(titleLabel.snp.bottom).offset(kRatioHeight(15))
            make.left.equalToSuperview().offset(kRatioWidth(12))
            make.right.equalToSuperview().offset(-kRatioWidth(12))
            make.bottom.equalToSuperview().offset(-kRatioHeight(10))
        }
        
    }
    
    
    
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
